<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录注册页面</title>
    <!-- 删除: <link rel="stylesheet" href="styles.css"> -->
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container" id="loginContainer">
        <h2>登录</h2>
        <input type="text" id="loginUsername" placeholder="用户名">
        <input type="password" id="loginPassword" placeholder="密码">
        <button onclick="login()">登录</button>
        <div class="toggle-form" onclick="toggleForm()">没有账号？注册</div>
    </div>

    <div class="container" id="registerContainer" style="display: none;">
        <h2>注册</h2>
        <input type="text" id="registerUsername" place<div class="container">
    <h2>选择登录方式</h2>
    <div id="login-methods">
        <button class="method-btn" onclick="showForm('email')">邮箱登录</button>
        <button class="method-btn" onclick="showForm('phone')">手机号登录</button>
        <button class="method-btn" onclick="showForm('social')">社交媒体登录</button>
    </div>

    <div id="email-form" class="form" style="display: none;">
        <h2>邮箱登录</h2>
        <input type="email" placeholder="邮箱" required>
        <input type="password" placeholder="密码" required>
        <button>登录</button>
    </div>

    <div id="phone-form" class="form" style="display: none;">
        <h2>手机号登录</h2><button onclick="showForm('login')">密码登录</button>
<button onclick="showForm('register')">注册</button>
<button onclick="showForm('phoneLogin')">手机验证码登录</button><button onclick="showForm('login')">密码登录</button>
<button onclick="showForm('register')">注册</button>
<button onclick="showForm('phoneLogin')">手机验证码登录</button>
        <input type="tel" placeholder="手机号" required>
        <input type="password" placeholder="密码" required>
        <button>登录</button>
    </div>

    <div id="social-form" class="form" style="display: none;">
        <h2>社交媒体登录</h2>
        <button>使用Facebook登录</button>
        <button>使用Google登录</button>
    </div>
</div>holder="用户名">
        <input type="password" id="registerPassword" placeholder="密码">
        <button onclick="register()">注册</button>
        <div class="toggle-form" onclick="toggleForm()">已有账号？登录</div>
    </div>

    <script src="script.js"></script>
</body>
</html>

